const mongoose = require('mongoose')
const Schema = mongoose.Schema
const Mixed = Schema.Types.Mixed

const categorySchema = new mongoose.Schema({
  name: { type: String, required: true },
  pid: { type: Mixed, required: true },
  link: { type: String, required: true }
})

mongoose.model('Category', categorySchema)
